Skip to content

Add PromptUnit SDK — drop-in OpenAI client with automatic model routing#252

Open
scorpion4ik26-lang wants to merge 1 commit into
humanloop:mainfrom
scorpion4ik26-lang:add-promptunit-sdk
Open

Add PromptUnit SDK — drop-in OpenAI client with automatic model routing#252
scorpion4ik26-lang wants to merge 1 commit into
humanloop:mainfrom
scorpion4ik26-lang:add-promptunit-sdk

Conversation

@scorpion4ik26-lang
Copy link
Copy Markdown

Add PromptUnit SDK to API tools.

Drop-in OpenAI client for Node.js/TypeScript. Routes API calls to cheaper models automatically (GPT-4o-mini, Claude Haiku, Gemini Flash) with built-in fallback to OpenAI. 40-70% cost reduction, zero code changes.

import { createPromptUnit } from "@promptunit/sdk";
const client = createPromptUnit({ promptunitKey: "...", openaiKey: "..." });
// existing code works unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant